/**
 * @filename:CapitalTypeService 2023-4-20
 * @project Wonder Java前后台分离框架  1.1.0
 * Copyright(c) 2022 Wonder Co. Ltd.
 * All right reserved.
 */
package com.wonder.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wonder.app.domain.MoldAndInspect;
import com.wonder.app.domain.MoldInspect;
import com.wonder.app.domain.MoldMaterial;
import com.wonder.app.domain.MoldScrap;
import com.wonder.app.request.MoldAndInspectRequest;
import com.wonder.app.request.MoldScrapRequest;

import java.util.Map;

/**
 * @Description:TODO(模具链类型服务层)
 * @version: 1.1.0
 * @author: Wonder
 *
 */
public interface MoldScrapService extends IService<MoldScrap>{
    /**
     * 验证模具链类型信息
     *
     * @param moldScrap
     * @param type
     * @return 结果
     */
    public String validate(MoldScrap moldScrap,String type);


    /**
     * Description:模具链类型分页返回
     * @param request//检索条件
     * @param page//分页参数
     * @return IPage<CapitalType>   //分页记录
     */
    public IPage<MoldScrap> selectList(MoldScrapRequest request, Page<MoldScrap> page);

    /**
     * 生成模具报废单
     * @param userName
     * @param moldInspect
     * @return
     */
    boolean createScrp(String userName, MoldInspect moldInspect);

    /**
     * 修改维修单同步生成调拨单
     * @param userName
     * @param map
     * @return
     */
    boolean updateScrp(String userName, Map<String, Object> map);

}
